package cn.lucky.springcloud.service;

import cn.lucky.springcloud.entities.CommonResult;
import cn.lucky.springcloud.entities.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author lingpeng.jiang
 * @create 2021-02-04-0:08
 */
@FeignClient(value = "cloud-payment-service",fallback = ConsumerOrderHandle.class)
public interface ConsumerOrderService {

    @GetMapping("/payment/get/{id}")
    CommonResult<Payment> getPayment(@PathVariable("id") Long id);
}
